using System;
using System.Collections.Generic;

namespace Update.Utils.Interfaces
{
    /// <summary>
    /// 更新帮助类接口
    /// </summary>
    public interface IUpdateHelper
    {
        /// <summary>
        /// 比较版本号
        /// </summary>
        /// <param name="version1">版本1</param>
        /// <param name="version2">版本2</param>
        /// <returns>0:相等, 1:version1大, -1:version2大</returns>
        int CompareVersions(string version1, string version2);

        /// <summary>
        /// 启动目标应用程序
        /// </summary>
        /// <param name="targetAppPath">应用程序路径</param>
        /// <param name="targetAppExe">应用程序可执行文件</param>
        /// <param name="arguments">启动参数</param>
        /// <returns>是否成功启动</returns>
        bool StartTargetApplication(string targetAppPath, string targetAppExe, string arguments = null);
    }
} 